package com.example.home.model

import com.example.common.view.model.BaseResultData
import com.example.home.api.HomeApiServer
import com.example.home.entity.NoticeEntityItem
import javax.inject.Inject

class HomeRepository @Inject constructor(private val apiServer: HomeApiServer){
    suspend fun loadNoticeData(page:Int,size:Int): BaseResultData<List<NoticeEntityItem>> {
        return apiServer.getNotice(page,size)
    }
}